<?php

namespace liketp\response;

use liketp\Response;

class Redirect extends Response
{
    protected $contentType = 'text/html';

    public function __construct($data, $code)
    {
        $this->init($data, $code);
        $this->header('location', $data);
    }

    public function output($data)
    {
        return '';
    }
}
